using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using DataWinner.Entity.Nba_Sohu.Models.Mapping;

namespace DataWinner.Entity.Nba_Sohu.Models
{
    public partial class Nba_SohuContext : DbContext
    {
        static Nba_SohuContext()
        {
            Database.SetInitializer<Nba_SohuContext>(null);
        }

        public Nba_SohuContext()
            : base("Name=Nba_SohuContext")
        {
        }

        public DbSet<Match_Sohu> Match_Sohu { get; set; }
        public DbSet<MatchCourse_Sohu> MatchCourse_Sohu { get; set; }
        public DbSet<sysdiagram> sysdiagrams { get; set; }
        public DbSet<Team_Sohu> Team_Sohu { get; set; }
        public DbSet<TeamStat_Sohu> TeamStat_Sohu { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new Match_SohuMap());
            modelBuilder.Configurations.Add(new MatchCourse_SohuMap());
            modelBuilder.Configurations.Add(new sysdiagramMap());
            modelBuilder.Configurations.Add(new Team_SohuMap());
            modelBuilder.Configurations.Add(new TeamStat_SohuMap());
        }
    }
}
